******************************
* Table A4- Balance in the lost to follow-up (attrited) sample
* col 1, 2,3
************************
clear all
set trace off
set more off
use "Jehanabad_analytic_sample_hemoglobin_attrition_extensive margin.dta"
ta attrited
preserve 
keep if attrited==1
** Panel A- Child level outcome variables
* Anemia
foreach var in hemoglobin any_an mild_an mod_sev_an{
ttest `var', by(treat) unequal
}

**Cognitive test outcomes

foreach var in block_design digit_span_forward digit_span_backward progressive_matrices day_and_night Cognition_Score_pca math reading total_attendance_2 {
ttest `var', by(treat) unequal
}

** Panel B
* Demographics and socioeconomic variables
foreach var in muslim_HH sc_st block rural_HH no_HHmembers years_schooling_father years_schooling_mother asset_index sex_child {
ttest `var', by(treat) unequal
}

* Health care / nutrition
foreach var in institut_delivery health_insurance diarrhea improved_sanitation diet_diversity_score no_meals cut_meals health_knowledge DDS_meat {
ttest `var', by(treat) unequal
}

**Panel C
* School characteristics

collapse total_enrollment class_size student_teacher_ratio calories_ph iron_ph treat, by (school_id)
foreach var in total_enrollment class_size student_teacher_ratio {
ttest `var', by(treat) unequal
}

close







